# Contributor: Sebastian Hudak <sebastian@sebsite.pw>
# Maintainer: Sebastian Hudak <sebastian@sebsite.pw>
pkgname=wiimms-iso-tools
pkgver=3.04a
pkgrel=0
pkgdesc="Set of command-line tools to work with Wii/GameCube ISO and WBFS files"
# releases aren't tagged; this commit matches version 3.04a
_commit=e58ce7463bc8829c46bcba52e8232f550e49c17c
url="https://wit.wiimm.de/"
arch="x86 x86_64"
license="GPL-2.0-or-later"
makedepends="bash linux-headers ncurses-dev openssl-dev zlib-dev"
subpackages="$pkgname-doc"
source="$pkgname-$_commit.tar.gz::https://github.com/Wiimm/wiimms-iso-tools/archive/$_commit.tar.gz
	$pkgname.patch"
builddir="$srcdir/$pkgname-$_commit"
options="!check" # No tests

build() {
	make -C project INSTALL_PATH="$pkgdir/usr" all doc
}

package() {
	make -C project INSTALL_PATH="$pkgdir/usr" install
	mkdir -p "$pkgdir"/usr/share/doc/wit/
	install -m644 project/doc/*.txt "$pkgdir"/usr/share/doc/wit/
}

sha512sums="
b750964dafd54a04b8c32849499e4af3a2c996aaa3c41e06766bdee1210bbe273aa4eaad0e75ff9142a93d36e3042f84e57a602ba6bd610e734f864f7504a842  wiimms-iso-tools-e58ce7463bc8829c46bcba52e8232f550e49c17c.tar.gz
a501814ed144592bfb8ee42663d2e0cf33d3a157fce8544e3ac21ab87ea530ad3c79acc4bd7ee61a33d3f87f5c7943d0b7519455a7a029bf894ee752801c11d8  wiimms-iso-tools.patch
"
